/*
 * @FilePath     : /study_code/vue/principle1.js
 * @Description  : 实现一个动态获取数据的函数
 * @Date         : 2025-04-29 09:09:59
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-29 16:56:40
 */
var a = null,
  b = null

function onAchange() {
  b = a * 10
  return b
}

a = 3

onAchange()
console.log(1, b) // 30

a = 4
onAchange()
console.log(2, b) // 40
